import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import "./ezview/static/css/index.css"
import ezView from "./ezview/index.js";
import '@/assets/css/common.css'
import Config from "@/config/global.js"

const electron = window.require('electron') //引用electron
const fs = window.require('fs') //引用Node模块fs
const remote = window.require('@electron/remote') //引用remote模块用于通信、打开文件弹框等
Vue.prototype.$electron = electron
Vue.prototype.$fs = fs
Vue.prototype.$remote = remote

Vue.use(router)
Vue.use(store)
Vue.use(ElementUI);
Vue.use(ezView);

store.commit("setConfig", Config);

Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
